Skip to content

added flag_set_filter config param and validation#484

Merged
chillaq merged 2 commits into
Feature/FlagSetsfrom
flagset-client-config
Oct 27, 2023
Merged

added flag_set_filter config param and validation#484
chillaq merged 2 commits into
Feature/FlagSetsfrom
flagset-client-config

Conversation

@chillaq

@chillaq chillaq commented Oct 23, 2023

Copy link
Copy Markdown
Contributor

Ruby SDK

What did you accomplish?

How to test new changes?

Extra Notes

@chillaq chillaq requested a review from sanzmauro October 23, 2023 21:41
@chillaq chillaq requested a review from a team as a code owner October 23, 2023 21:41
Comment thread lib/splitclient-rb/validators.rb Outdated
Comment thread lib/splitclient-rb/validators.rb
Comment thread lib/splitclient-rb/validators.rb Outdated
return nil
end
valid_flag_sets = SortedSet[]
flag_sets.compact.uniq.select do |flag_set|

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are not trimming the flag set if neecessary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trimming is done inside the loop, I need to check first if the object is string, otherwise the strip method will raise exception

Comment thread lib/splitclient-rb/validators.rb Outdated
@chillaq chillaq requested a review from sanzmauro October 24, 2023 16:04
@chillaq chillaq merged commit f1b88f0 into Feature/FlagSets Oct 27, 2023
@chillaq chillaq deleted the flagset-client-config branch October 27, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants